package com.zq.designpaterns.create.singleton;

/**
 * ================================================
 * 作    者：程志强
 * 邮    箱：cheng.zhiqiang@cesgroup.com.cn
 * 版    本：1.0.0
 * 创建日期：2021/01/11  15:31
 * 修改日期：
 * 描    述：单例模式：饿汉式
 * 修订历史：
 * ================================================
 */
public class SingleHungry {
    private static final SingleHungry instance = new SingleHungry();

    public static SingleHungry getInstance() {
        return instance;
    }

    public void showMsg() {
        System.out.println("单例模式--饿汉式：hello world!");
    }
}
